import re


def secretScore(secret):
    score = 0

    sign_re = re.compile('[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+')
    upper_re = re.compile('[A-Z]+')
    lower_re = re.compile('[a-z]+')
    alpha_re = re.compile('[a-zA-Z]+')
    num_re = re.compile('[0-9]+')

    if len(secret) <= 4:
        score += 5
    elif 5 <= len(secret) <= 7:
        score += 10
    else:
        score += 25

    if bool(alpha_re.search(secret)) is False:
        score += 0
    elif bool(lower_re.search(secret)) and bool(upper_re.search(secret)):
        score += 20
    else:
        score += 10

    if bool(num_re.search(secret)) is False:
        score += 0
    elif len(''.join(num_re.findall(secret))) == 1:
        score += 10
    else:
        score += 20

    if bool(sign_re.search(secret)) is False:
        score += 0
    elif len(''.join(sign_re.findall(secret))) == 1:
        score += 10
    else:
        score += 25
    extra = 0
    if bool(num_re.search(secret)) and bool(alpha_re.search(secret)):
        extra = 2
        if bool(sign_re.search(secret)):
            extra = 3
    if bool(lower_re.search(secret)) and bool(upper_re.search(secret)):
        if bool(num_re.search(secret)) and bool(sign_re.search(secret)):
            extra = 5

    score += extra

    if score >= 90:
        return 'VERY_SECURE'
    elif score >= 80:
        return 'SECURE'
    elif score >= 70:
        return 'VERY_STRONG'
    elif score >= 60:
        return 'STRONG'
    elif score >= 50:
        return 'AVERAGE'
    elif score >= 25:
        return 'WEAK'
    else:
        return 'VERY_WEAK'


if __name__ == '__main__':
    s = '38$@NoNoNo'
    print(secretScore(s))

